home *** CD-ROM | disk | FTP | other *** search
/ Secrets of Stargate / STARGATE.iso / mac / STARGATE (5MB Macintosh) / STARGATE (5MB Macintosh).DXR / 00066.ls < prev    next >
Encoding:
Text File  |  1994-10-19  |  1.5 KB  |  61 lines

  1. on idle
  2. end
  3.  
  4. on exitFrame
  5.   go(the frame)
  6. end
  7.  
  8. on enterFrame
  9.   global gOnPC, gMovieStartMod, gSysVol
  10.   if the pauseState = 0 then
  11.     spinCursor()
  12.     set the visible of sprite 35 to 0
  13.     pause()
  14.     puppetPalette(value(the number of cast "TRAILER.PIC Palette"))
  15.     updatePalette()
  16.     set the visible of sprite 35 to 1
  17.     set theVolume to 150
  18.     set theVolume to integer(gSysVol * (float(theVolume) / float(255)))
  19.     set theVolume to integer(theVolume * 1.5)
  20.     if theVolume > 255 then
  21.       set theVolume to 255
  22.     end if
  23.     set the volume of sprite 35 to 0
  24.     set the puppet of sprite 35 to 1
  25.     continue()
  26.     updateStage()
  27.     set the movieRate of sprite 35 to 0.09999999999999999
  28.     set the movieTime of sprite 35 to 180
  29.     stopCursor()
  30.     preRollMov(35)
  31.     set the volume of sprite 35 to value(theVolume)
  32.     set cont to 1
  33.     repeat while cont
  34.       set the movieRate of sprite 35 to 1
  35.       updateStage()
  36.       if the movieRate of sprite 35 > 0 then
  37.         exit repeat
  38.       end if
  39.     end repeat
  40.     set earlyExit to 0
  41.     repeat while the movieRate of sprite 35 > 0
  42.       if the mouseDown = 1 then
  43.         set the movieRate of sprite 35 to 0
  44.         set earlyExit to 1
  45.         exit repeat
  46.       end if
  47.       updateStage()
  48.     end repeat
  49.     spinCursor()
  50.     set the movieRate of sprite 35 to 0
  51.     set the visible of sprite 35 to 0
  52.     set the puppet of sprite 35 to 0
  53.     puppetPalette(0)
  54.     updateStage()
  55.     wait(10)
  56.     spinCursor()
  57.     dissolveEffect()
  58.     go("Intro4")
  59.   end if
  60. end
  61.